import {
    createRouter as _createRouter,
    createWebHashHistory,
} from 'vue-router'

import adminLayout from "~/layouts/admin.vue"
const routes = [{
        path: '/login',
        name: 'login',
        component: () =>
            import ('../pages/bbx/login.vue'),
    },

    // {
    //     path: '/',
    //     name: '',
    //     component: adminLayout,
    //     children: [{
    //             path: '/baoxiao',
    //             name: 'baoxiao',
    //             component: () =>
    //                 import ('../pages/shangcheng/baoxiao.vue'),
    //         },
    //         {
    //             path: '/bumen',
    //             name: 'bumen',
    //             component: () =>
    //                 import ('../pages/shangcheng/bumen.vue'),
    //         },
    //         {
    //             path: '/zichan',
    //             name: 'zichan',
    //             component: () =>
    //                 import ('../pages/shangcheng/zichan.vue'),
    //         },
    //         {
    //             path: '/qingjia',
    //             name: 'qingjia',
    //             component: () =>
    //                 import ('../pages/shangcheng/qingjia.vue'),
    //         }
    //     ]
    // }

]

function createRouter() {
    return _createRouter({
        history: createWebHashHistory(),
        routes
    })
}

const router = createRouter()

export default router